function displaydiff(x,y,namex,namey,fmt) 
% function displaydiff(x,y,namex,namey,fmt) 
%
% Given inputs X and Y, with optional names NAMEX NAMEY, 
% diplay the absolute value of their difference using the format FMT in
% SPRINTF. Default format is 1.12f 
% A. Justiniano April 19 2013

if nargin < 5 || isempty(fmt); 
    fmt='%1.12f'; 
end 
if nargin < 4 || isempty(namey); 
    namey='second object'; 
end 
if nargin < 3 || isempty(namex); 
    namex='first object'; 
end 
stringPrint=sprintf(['abs( ',namex,' - ',namey,' )=',fmt,' \n'],abs(x-y)); 
disp(stringPrint); 

